package com.aliyun.oss.pojo;

import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;

public class ArticleContent {
    private Integer id;
    private Integer userId;
    private String title;
    private Integer cateId;
    private String content;
    private MultipartFile coverImg;

    private String imgUrl;

    private LocalDateTime pubDate;

    private String state;

    public ArticleContent(Integer id, Integer userId, String title, Integer cateId, String content, MultipartFile coverImg, String imgUrl, LocalDateTime pubDate, String state) {
        this.id = id;
        this.userId = userId;
        this.title = title;
        this.cateId = cateId;
        this.content = content;
        this.coverImg = coverImg;
        this.imgUrl = imgUrl;
        this.pubDate = pubDate;
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public LocalDateTime getPubDate() {
        return pubDate;
    }

    public void setPubDate(LocalDateTime pubDate) {
        this.pubDate = pubDate;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    @Override
    public String toString() {
        return "ArticleContent{" +
                "id=" + id +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", cateId=" + cateId +
                ", content='" + content + '\'' +
                ", coverImg=" + coverImg +
                ", imgUrl='" + imgUrl + '\'' +
                ", pubDate=" + pubDate +
                '}';
    }

    public ArticleContent() {
    }


    public ArticleContent(Integer id, Integer userId, String title, Integer cateId, String content, MultipartFile coverImg, String imgUrl, LocalDateTime pubDate) {
        this.id = id;
        this.userId = userId;
        this.title = title;
        this.cateId = cateId;
        this.content = content;
        this.coverImg = coverImg;
        this.imgUrl = imgUrl;
        this.pubDate = pubDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public MultipartFile getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(MultipartFile coverImg) {
        this.coverImg = coverImg;
    }
}
